Search
Utilities.pointInPolyRect Method
See Also
 






Tests if the specified Point2D is inside the polygon defined by the specified array of points and the specified Rectangle2D.

Namespace: com.mindfusion.charting
File: com.mindfusion.charting

 Syntax

Java  Copy Code

public static boolean pointInPolyRect (
    Point2D[] poly,
    Point2D ptTest,
    Rectangle2D rBound
)

 Parameters

poly

Array of Point2D instances that defines the polygon.

ptTest

The Point2D to test.

rBound

The Rectangle2D.

 Return Value

true if the point is inside the figure defined by the polygon and the rectangle; otherwise false.

 See Also